<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : EC2SecurityGroupManage
    Created on : Nov 28, 2008, 8:21:34 PM
    Author     : Sean ODell
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1" title="AWS Manager - Manage Security Groups">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body id="body1" style="-rave-layout: grid">
                    <webuijsf:form id="form1">
                        <div style="left: 0px; top: 0px; position: absolute; width: 100%">
                            <jsp:directive.include file="AWSManagerHeader.jspf"/>
                        </div>
                        <webuijsf:panelLayout id="layoutPanel1" panelLayout="flow" style="padding: 5px 4px 4px 4px; top: 74px; position: absolute; width: 100%">
                            <webuijsf:table augmentTitle="false" binding="#{EC2SecurityGroupManage.table_EC2_IpPermissions}" clearSortButton="true"
                                deselectMultipleButton="true" id="table_EC2_IpPermissions" paginateButton="true" paginationControls="true"
                                selectMultipleButton="true" sortPanelToggleButton="true" title="Security Group Permissions" width="117">
                                <f:facet name="actionsTop">
                                    <webuijsf:panelGroup id="gp_S3ObjectActions">
                                        <webuijsf:label id="label1" style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Actions: "/>
                                        <webuijsf:button actionExpression="#{EC2SecurityGroupManage.refreshView_EC2SecurityGroupPerms_action}"
                                            id="btn_RefreshEC2SecurityGroupPerms" imageURL="/resources/images/refresh.png"
                                            style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Refresh" toolTip="Refresh"/>
                                        <webuijsf:button actionExpression="#{EC2SecurityGroupManage.returnBtn_action}" id="btn_ExitToEC2SecurityGroups"
                                            imageURL="/resources/images/exit.png" style="padding-left: 2px; padding-right: 2px; vertical-align: middle"
                                            text="Return" toolTip="Return"/>
                                        <webuijsf:button actionExpression="#{EC2SecurityGroupManage.grantPermissionBtn_action}"
                                            id="btn_GrantEC2SecurityGroupPerm" imageURL="/resources/images/firewall_add.png"
                                            style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Grant" toolTip="Grant Permission"/>
                                        <webuijsf:button actionExpression="#{EC2SecurityGroupManage.revokePermissionBtn_action}"
                                            id="btn_RevokeEC2SecurityGroupPerm" imageURL="/resources/images/firewall_delete.png"
                                            style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Revoke" toolTip="Revoke Selected Permissions"/>
                                    </webuijsf:panelGroup>
                                </f:facet>
                                <webuijsf:tableRowGroup binding="#{EC2SecurityGroupManage.trg_EC2_IpPermissions}" id="trg_EC2_IpPermissions" rows="20"
                                    selected="#{SessionBean1.selectedState}" sourceData="#{SessionBean1.ec2IpPermissionDataProvider}" sourceVar="currentRow">
                                    <webuijsf:tableColumn id="trg_EC2_IpPermissionsSelectionColumn"
                                        onClick="setTimeout(function(){document.getElementById('form1:layoutPanel1:table_EC2_IpPermissions').initAllRows()}, 0);" selectId="trg_EC2_IpPermissionsSelectionChild">
                                        <webuijsf:checkbox id="trg_EC2_IpPermissionsSelectionChild" selected="#{SessionBean1.selected}" selectedValue="#{SessionBean1.selectedValue}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Region" id="tableColumn5" sort="securityGroupRegion">
                                        <webuijsf:staticText id="staticText5" text="#{currentRow.value['securityGroupRegion']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Security Group" id="tableColumn6" noWrap="true" sort="securityGroupName">
                                        <webuijsf:staticText id="staticText6" text="#{currentRow.value['securityGroupName']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Protocol" id="tableColumn1" sort="protocol" width="117">
                                        <webuijsf:staticText id="staticText1" text="#{currentRow.value['protocol']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn align="right" headerText="From Port" id="tableColumn2" sort="fromPort">
                                        <webuijsf:staticText id="staticText2" text="#{currentRow.value['fromPort']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn align="right" headerText="To Port" id="tableColumn3" sort="toPort">
                                        <webuijsf:staticText id="staticText3" text="#{currentRow.value['toPort']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Source CIDR" id="tableColumn4" sort="cidrIp">
                                        <webuijsf:staticText id="staticText4" text="#{currentRow.value['cidrIp']}"/>
                                    </webuijsf:tableColumn>
                                </webuijsf:tableRowGroup>
                            </webuijsf:table>
                        </webuijsf:panelLayout>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
